package com.shensi.api.pay.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户电子会员卡使用记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
public class CustomerCardUseRecord {
    private Integer id;
    private String orderNo;                 //'充值订单号',
    private String blogOpenid;                 //'微信用户公众号openId',
    private String minaOpenid;                 //'微信用户小程序openId',
    private String unionId;                 //'微信用户唯一标识',
    private String aliId;                   // 支付宝用户ID
    private String customerNo;              // 会员ID
    private String customerName;            //'客户名'',
    private String mobilePhone;             //'客户手机号'',
    private String usageType;               //'电子会员卡消费充值类型：+，充值；-，消费；',
    private String payType;                 //'电子会员卡充值消费类型：1.微信；2.POS机',
    private String cardOilsType;            //油类：1.柴油；2.汽油；
    private BigDecimal amt;                 //'充值，消费金额'
    private BigDecimal presentAmt;          //'赠送金额''
    private BigDecimal balance;             //余额
    private Date createTime;                //'记录时间'
    private Date payTime;                   //支付时间
    private Integer stationId;              //'油站ID'
    private Integer enterpriseId;              //'油企ID'
    private Integer groupId;              //'油站ID'
    private String stationName;             //'油站名称'
    private String enterpriseName;             //'油企名称'
    private String status;                  //'充值状态'
    private String oilsCardName;            //卡名字
    private String dictType;                //数据字典表：数据类型

    private String transactionId;       //交易单号（微信）
    private String merchantsNumber;     //商户单号（商户）

    private String orderOriginType;     //订单来源

    private BigDecimal serviceCharge;

    private Long ccsdId;//充值活动id

    private Long payWayId;

    private String reason;

    private Integer operator;

    private String operatorName;

    private Integer integral;

    /**
     * 中间变量，无实际意义，不显示
     */
    @JsonIgnore
    private String source;

    private BigDecimal lastRechargeAmt;

}
